package com.ganeshkrishnan.globald.dao.hibernate;

import java.util.List;

import com.ganeshkrishnan.globald.abstracts.GenericDaoHibernate;
import com.ganeshkrishnan.globald.dao.GovernmentDao;
import com.ganeshkrishnan.globald.model.Government;

public class GovernmentDaoHibernate extends GenericDaoHibernate<Government, Long> implements GovernmentDao {
	public GovernmentDaoHibernate() {
		super(Government.class);
	}

	public List<Government> getStrucByCountry(int countryCode) {
		return getHibernateTemplate().find("from Government where CountryCode=?", countryCode);
	}
}
